package cn.net.zyx.dao;

import cn.net.zyx.domain.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * description: VideoMapper <br>
 * date: 2021/5/7 09:40 <br>
 *
 * @author: ZhangYixin <br>
 * version: 1.0 <br>
 */

@Mapper
public interface VideoMapper {
    /**
     * 根据id查询视频
     * @param videoId
     * @return
     */
    @Select("select * from video where id=#{videoId} ")
    Video findById(@Param("videoId") int videoId);
}
